import { defineStore } from 'pinia'
import { ref } from 'vue';
export const useNavStore = defineStore('nav',()=>{

    const nav = ref([]);
    const active_nav_id = ref( 0 );  // 当前打开二级子导航的父导航名称，默认状态为空
    function init( val ){
        nav.value = val;
    }

    return { nav , init };
});